import request from '@/utils/request'

export function listPassword(query) {
  return request({
    url: '/bdmap/bdmap/list',
    method: 'get',
    params: query
  })
}

export function getPassword(postId) {
  return request({
    url: '/bdmap/bdmap/' + postId,
    method: 'get'
  })
}

export function addPassword(data) {
  return request({
    url: '/bdmap/bdmap',
    method: 'post',
    data: data
  })
}

export function updatePassword(data) {
  return request({
    url: '/bdmap/bdmap',
    method: 'put',
    data: data
  })
}

// 删除岗位
export function delPassword(postId) {
  return request({
    url: '/bdmap/bdmap/' + postId,
    method: 'delete'
  })
}
